package cn.wolfcode.service;

import cn.wolfcode.domain.Strategy;
import cn.wolfcode.domain.StrategyCatalog;
import cn.wolfcode.query.StrategyQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyService {
    void insert(Strategy strategy);
    void update(Strategy strategy);
    void delete(String id);
    Strategy get(String id);
    List<Strategy> listAll();

    Page query(StrategyQuery qo);

    void saveOrUpdate(Strategy strategy);

    void changeState(String id, int state);

    List<Strategy> findByDestId(String id);


    List<Strategy> viewnumTop3(String destId);
}
